package megamente.modelo;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the sala database table.
 * 
 */
@Entity
@Table(name="sala")
public class Sala implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private SalaPK id;

	private int butacas;

	private String sala3d;

	//bi-directional many-to-one association to Sucursal
    @ManyToOne
	@JoinColumn(name="idSucursal")
	private Sucursal sucursal;

    public Sala() {
    }

	public SalaPK getId() {
		return this.id;
	}

	public void setId(SalaPK id) {
		this.id = id;
	}
	
	public int getButacas() {
		return this.butacas;
	}

	public void setButacas(int butacas) {
		this.butacas = butacas;
	}

	public String getSala3d() {
		return this.sala3d;
	}

	public void setSala3d(String sala3d) {
		this.sala3d = sala3d;
	}

	public Sucursal getSucursal() {
		return this.sucursal;
	}

	public void setSucursal(Sucursal sucursal) {
		this.sucursal = sucursal;
	}
	
}